package com.mystudy.springcloud.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mystudy.springcloud.domain.Account;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

public interface AccountDao extends BaseMapper<Account> {
	/**
	 * @功能: 扣减余额  已用余额 + money | 可用余额 - money
	 */
	void decreaseAccount(@Param("userId") Long userId, @Param("money") BigDecimal money);
}